package biblio;

import java.util.HashMap;
import java.util.Map;

import javax.ws.rs.Path;
import javax.ws.rs.core.Response;

import com.sun.jersey.api.container.grizzly.GrizzlyWebContainerFactory;

@Path("Books")
public class BiblioService {
	private Biblio biblio = new Biblio();
	
	public Response biblio_POST(BiblioRequest request){
		BiblioResponse r = new BiblioResponse();
		r.fullname = request.fullname;
		
	}
	
	
	public static void main(String[] args) throws Exception {
		final String baseUri = "http://localhost:9998/";
		final Map<String, String> initParams = new HashMap<String, String>();
		
		initParams.put("com.sun.jersey.config.property.packages", "tdrest");
		
		GrizzlyWebContainerFactory.create(baseUri, initParams);
	}
}
